home *** CD-ROM | disk | FTP | other *** search
- Path: prodigy.com!usenet
- From: DZYS46D@prodigy.com (David Cunningham)
- Newsgroups: comp.lang.c
- Subject: Explain this> %s \"%[^\"]\"
- Date: 29 Feb 1996 00:49:34 GMT
- Organization: Prodigy Services Company 1-800-PRODIGY
- Distribution: world
- Message-ID: <4h2t6u$v56@useneta1.news.prodigy.com>
- NNTP-Posting-Host: inugap5.news.prodigy.com
- X-Newsreader: Version 1.2
-
-
- I have a file that contains text like this:
-
- 012345678 "Joe Smith"
-
-
- I also have an example of sscanf to pick out these fields. Can someone
- translate what \"%[^\"]\"%d" means. I need to have a good understanding
- of this for a homework assignment. It looks like this:
-
- sscanf(buff,"%s \ "%[^\"]\" %d",student_list->ss_num,student_list->name);
-
-
-
- Please explain what these hieroglyphics mean, character by character.
-
- The sscanf will produce this--> 012345678 Joe Smith
-
- Please don't email, post the answer, thanks.
-
-